package com.itheima.test4;

public class Car implements Inter{
    private String brand;
    private double price;
    public void run(){
        System.out.println(brand+"在运行中...");
    }

    public Car() {
    }

    public Car(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public void Gps() {
        System.out.println("这是"+brand+"的GPS");
    }
}
